<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动</title>
		<style>
			#main div{
				height: 100px;
				width: 100px;
				font-size:40px;
				border: 1px solid red;
				text-align: center;
				line-height: 100px;
				margin: 2px;
				float: left;
			}
			#main{
				border: 5px ridge greenyellow;
				overflow: hidden;
			}
			#d4{
				 
			}
			#d5{
				width: 200px;
				background-color: burlywood;
				float: left;
			}
		</style>
	</head>
	<body>
		<div id="main">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
		</div>
		<p id="d4" style="background-color: bisque; width:300px;">
			马晓波是个好同志
		</p>
		<p id="d5">
			刘鹏飞其实腰围很细
		</p>
	</body>
</html>